package com.rentcars.mapper;


import com.rentcars.entity.Credit;

import java.util.List;

/**
 * @author 86186
 */
public interface CreditMapper {
    /**
     * 添加客户的信用值
     * @param credit
     * @return
     */
    int insertSelective(Credit credit);


    /**
     * 查询所有的信息
     * @param credit
     * @return
     */
    List<Credit> selectAllCredit(Credit credit);

    /**
     *根据ID查询客户信息
     * @param cid
     * @return
     */

    Credit selectCreditById(String cid);


    /**
     * 修改信息
     * @param credit
     * @return
     */
    int updateCredit(Credit credit);

    /**
     * 根据ID删除客户信息
     * @param cid
     * @return
     */
    int deleteByCid(String cid);

    /**
     * 批量删除
     * @param cidList
     * @return
     */

    int delCredit(List<String> cidList);
}